package com.hsnn.medstgmini.pro.plan.model;

/**
 * @category 采购方式
 * @author wangbing
 * @date 2015-11-19
 *
 */
public enum ProMethod {

	zbcg(1, "招标采购"), tpcg(2, "谈判采购"), zjcg(3, "直接采购"), ddsc(4, "定点生产"), bacg(5, "备案采购");

	private int key;
	private String value;

	private ProMethod(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(int key) {
		for (ProMethod ut : ProMethod.values()) {
			if (ut.key == key) {
				return ut.value;
			}
		}
		return "";
	}

	public static ProMethod getPurMethod(int key) {
		for (ProMethod ut : ProMethod.values()) {
			if (ut.key == key) {
				return ut;
			}
		}
		return null;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
